

Pod::Spec.new do |s|
  s.name             = "BCScrollViewKit"
  s.version          = "1.0.0"
  s.summary          = "huihui health BCScrollViewKit"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       An optional longer description of huihui health

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/BCScrollViewKit.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "chasel" => "chenchun1@cnstrong.cn" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/BCScrollViewKit.git", :branch => "master" }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '9.0'
  s.requires_arc = true
  s.default_subspec = 'Core'

  # 核心库
  s.subspec 'Core' do |core|
    core.public_header_files = 'Core/**/*.h'
    core.source_files = 'Core/**/*.{h,m}'
  end
  
   # 刷新库
   s.subspec 'Refresh' do |refresh|
     refresh.public_header_files = 'Refresh/**/*.h'
     refresh.source_files = 'Refresh/**/*.{h,m}'
     refresh.resource = 'Refresh/**/*.bundle'
     refresh.dependency s.name+'/Core'
   end
   
  # 空页面显示
   s.subspec 'Empty' do |empty|
     empty.public_header_files = 'Empty/*.h'
     empty.source_files = 'Empty/*.{h,m}'
     empty.dependency s.name+'/Core'
   end

   # 业务刷新，空数据扩展
   s.subspec 'Business' do |business|
     business.public_header_files = 'BusinessExt/*.h'
     business.source_files = 'BusinessExt/*.{h,m}'

     business.dependency 'BCComConfigKit'
     business.dependency s.name+'/Refresh'
     business.dependency s.name+'/Core'
   end

   # swift
   s.subspec 'Swift' do |swift|
     swift.source_files = 'Swift/**/*.{h,m,swift}'
     swift.resource = 'Resources/BCScrollViewKit.bundle'
     swift.dependency s.name+'/Refresh'
     swift.dependency s.name+'/Empty'
     swift.dependency 'BCComConfigKit'
     swift.dependency 'HHNetworkKit/Reachability'
     
   end


end
